@echo off

set BP_DIR=I:\BP\BIN


@%BP_DIR%\tasm pigaus.asm
if not errorlevel 0 goto error


copy modif1.inc modif.inc
@echo ************Compiling Canny**************
@%BP_DIR%\bpc canny -CD -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling Mask**************
@%BP_DIR%\bpc mask -CD -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling Median**************
@%BP_DIR%\bpc median -CD -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling Convert**************
@%BP_DIR%\bpc convert -CD -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling GComp**************
@%BP_DIR%\bpc gcomp -CD -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling Morphology**************
@%BP_DIR%\bpc morph -CD -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error


copy modif2.inc modif.inc
del z:\prog\units\pictures.tpu
del pictures.tpu
@echo ************Compiling Vectoriser**************
@%BP_DIR%\bpc vector11 -CD -$r-,s-,i-,q-,d-,g+ -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo *****************Compiling Viewer****************
@%BP_DIR%\bpc view -CD -$r-,s-,i-,q-,d-,g+ -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo *****************Compiling Demo****************
@%BP_DIR%\bpc demo -CD -$r-,s-,i-,q-,d-,g+ -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

md ..\bin
md ..\bin\DOS
copy *.exe ..\bin\DOS\*.*
del *.exe


copy modif1.inc modif.inc
@echo ************Compiling DPMICanny**************
@%BP_DIR%\bpc canny -CP -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling DPMIMask**************
@%BP_DIR%\bpc mask -CP -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling DPMIMedian**************
@%BP_DIR%\bpc median -CP -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error


@echo ************Compiling DPMIConvert**************
@%BP_DIR%\bpc convert -CP -$r-,s-,i-,q-,d-,g+,m32768  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling DPMIGComp**************
@%BP_DIR%\bpc gcomp -CP -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling DPMIMorphology**************
@%BP_DIR%\bpc morph -CP -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error


copy modif2.inc modif.inc
del z:\prog\units\pictures.tpp
del pictures.tpp
@echo ************Compiling DPMIVectoriser**************
@%BP_DIR%\bpc vector11 -CP -$r-,s-,i-,q-,d-,g+  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo *****************Compiling DPMIViewer****************
@%BP_DIR%\bpc view -CP -$r-,s-,i-,q-,d-,g+ -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo *****************Compiling DPMIDemo****************
@%BP_DIR%\bpc demo -CP -$r-,s-,i-,q-,d-,g+ -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

md ..\bin
md ..\bin\DPMI
copy *.exe ..\bin\DPMI\*.*
del *.exe


copy modif3.inc modif.inc
@echo ************Compiling WinCanny**************
@%BP_DIR%\bpc canny -CW -$r-,s-,i-,q-,d-,g+,m16384,16384  -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling WinConvert**************
@%BP_DIR%\bpc convert -CW -$r-,s-,i-,q-,d-,g+,m16384,16384 -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error


@echo ************Compiling WinMask**************
@%BP_DIR%\bpc mask -CW -$r-,s-,i-,q-,d-,g+,m16384,16384 -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling WinMedian**************
@%BP_DIR%\bpc median -CW -$r-,s-,i-,q-,d-,g+,m16384,16384 -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling WinVectoriser**************
@%BP_DIR%\bpc vector11 -CW -$r-,s-,i-,q-,d-,g+ -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error

@echo ************Compiling WinMorphology**************
@%BP_DIR%\bpc morph -CW -$r-,s-,i-,q-,d-,g+,m16384,16384 -b -m -uz:\prog\units;d:\prog\units;i:\bp\non_bp\jpg;i:\bp\rtl\tv -Oi:\bp\rtl\tv
if not errorlevel 0 goto error


md ..\bin\WIN
copy *.exe ..\bin\WIN\*.*
del *.exe

del *.tpu
del *.tpp
del *.tpw

goto konec

:error
@echo -------------------------------------------------------------------
@echo			   pİi pİekladu do¨lo k chyb
@echo -------------------------------------------------------------------


:konec
copy modif1.inc modif.inc
